<?php

class Application_Form_Projectdetails extends ZendX_JQuery_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->addElement('hidden','id');
        $this->addElement('text','name', array(
            'label'     => 'Project name: ',
            'required'  => 'true',
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(1, 45)),
            ),
            
        ));
        $this->addElement('text','description', array(
            'label'     => 'Description: ',
            'required'  => 'true',
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(1, 45)),
            ),
        ));
        $this->addElement('datePicker','starttime', array(
            'label'     => 'Start date: ',
            'required'  => 'true',
            'filters'    => array('StringTrim'),
            
        ));
        $this->addElement('datePicker','endtime', array(
            'label'     => 'Estimated end date: ',
            'required'  => 'true',
             'filters'    => array('StringTrim'),
            
        ));
        $this->addElement('submit','submit',array('label'=>'Save'));
    }


}

